﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

using LinnCorLib.Net;


namespace MonsterServer
{
    public partial class Main : Form
    {
        private ChatServer server;

        public Main()
        {
            InitializeComponent();

            server = new ChatServer(7777);
        }


        private void btnStartServer_Click(object sender, EventArgs e)
        {
            if (server.stopped == false)
            {
                MessageBox.Show("이미 가동중");
                return;
            }

            server.Start(1);
        }

        private void btnStopServer_Click(object sender, EventArgs e)
        {
            server.Stop();
        }
    }
}
